import {
    HomeFilled,
    Avatar,
    Promotion,
    Document,
    Shop,
    Management,
    List,
    Expand,
    Fold,
    QuestionFilled,
    Comment,
    InfoFilled,
    FullScreen,
    Refresh,
    Tools,
    Message,
    Finished,

} from "@element-plus/icons-vue";


const globalComponents = {
    HomeFilled,
    Avatar,
    Promotion,
    Document,
    Shop,
    Management,
    List,
    Expand,
    Fold,
    QuestionFilled,
    Comment,
    InfoFilled,
    FullScreen,
    Refresh,
    Tools,
    Message, 
    Finished,
}


// 自定义Hook, 注册全局组件
export default {
    install(app: any) {
        for (const [name, component] of Object.entries(globalComponents)) {
            app.component(name, component)
        }
    }
}